﻿#ifndef TCPCODEC_READSENSORDATA_H
#define TCPCODEC_READSENSORDATA_H

#include <qobject.h>
#include "ObjAutoInject.h"
#include "TcpCodecBase.h"

class TcpCodec;
class TcpCodec_ReadSensorData : public QObject,public ObjAutoInject,public TcpCodecBase
{
  Q_OBJECT
private://dependency
  TcpCodec* tcpCodec=Q_NULLPTR;
public:
  explicit TcpCodec_ReadSensorData();
  virtual ~TcpCodec_ReadSensorData();
signals:
public:
  virtual void decode(DataPackage_TcpCodec* dataPackageInfo_User)override;
public://geter and seter
  TcpCodec* getTcpCodec()const;
  TcpCodec_ReadSensorData* setTcpCodec(TcpCodec* const tcpCodec);
public:
  virtual void objectAutoInjection(QHash<QString,QObject*>* objMap)override;
};

#endif // TCPCODEC_READSENSORDATA_H
